/*
 * Copyright (C) 2011-present ShenZhen iBOXCHAIN Information Technology Co.,Ltd.
 *
 * All right reserved.
 *
 * This software is the confidential and proprietary
 * information of iBOXCHAIN Company of China.
 * ("Confidential Information"). You shall not disclose
 * such Confidential Information and shall use it only
 * in accordance with the terms of the contract agreement
 * you entered into with iBOXCHAIN inc.
 */
package com.example.wac.shiro.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author wuancheng
 * @description
 * @date 2023-04-13 15:21:00
 */

@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = "shiro")
public class ShiroConfig {
    /**
     * 记住我cookie名称
     */
    private String rememberCookieName;
    /**
     * cookie名称
     */
    private String cookieName;
    /**
     * realm cache后缀key
     */
    private String principalIdFieldName;
    /**
     * 会话超时时间,单位毫秒
     */
    private int globalSessionTimeout;
    /**
     * 密码输入错误重试次数，默认5次
     */
    private int retryLimitCount = 5;
    /**
     * 密码重试超过限制次数后，相隔多久可再次登录，单位秒，默认30分钟
     */
    private int retryLimitTimeout = 1800;
    /**
     * 密码重试超过限制次数后，是否锁定账号，默认0, 0-否;1-是
     */
    private int retryLimitIsLock = 0;

}
